<template>
  <el-row :gutter="20" class="mt-5">
    <!-- <el-col :span="3">
      <el-card shadow="hover">
        <div class="flex items-center justify-center cursor-pointer">
          <el-icon :size="25" class="text-purple-500"><AddLocation /></el-icon>
          <span class="text-sm"> 分类</span>
        </div>
      </el-card>
    </el-col> -->
     <el-col :span="24">
      <div id="chart" style="width:100% ;height:500px"></div>
     </el-col>
  </el-row>
  
</template>

<script setup>
import {ref,onMounted} from 'vue'
import * as echarts from 'echarts';

var myChart=null;
onMounted(()=>{
var chartDom = document.getElementById('chart');
    myChart = echarts.init(chartDom);
    var option;

option = {
  xAxis: {
    type: 'category',
    data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
  },
  yAxis: {
    type: 'value'
  },
  series: [
    {
      data: [150, 230, 224, 218, 135, 147, 260],
      type: 'line'
    }
  ]
};
option && myChart.setOption(option);

})

</script>